package cn.tx.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author Mxb
 * @version 1.0
 * @date 2020/10/12 20:00
 */
@Configuration
public class WorkConfig {

    /**
     * 创建一个队列
     * @return
     */
    @Bean
    public Queue work(){
        return new Queue("work233");
    }
}
